package com.example.mobile20320216061300507;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class showMainActivity extends AppCompatActivity {
    private Button button;
    private TextView textView5;
    private TextView tvUesr;
    private TextView tvPass;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show_main);
        initView();
        Intent intent=getIntent();
        String passes = intent.getStringExtra("pass");
        tvPass.setText(passes);
        Bundle bundl=intent.getExtras();
        String uers = bundl.getString("uers");
        tvUesr.setText(uers);
    }

    private void initView() {
        textView5 = (TextView) findViewById(R.id.textView5);
        tvUesr = (TextView) findViewById(R.id.tv_uesr);
        tvPass = (TextView) findViewById(R.id.tv_pass);
    }

    public void XZ(View view) {
        textView5 = (TextView) findViewById(R.id.textView5);
        tvUesr = (TextView) findViewById(R.id.tv_uesr);
        tvPass = (TextView) findViewById(R.id.tv_pass);
        button=findViewById(R.id.bt_tishi);
        Intent intent = new Intent(showMainActivity.this,suplierActivity.class);
        startActivityForResult(intent,1);
    }
}